﻿using FriendStar.Application.VBaseData;
using FriendStar.Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FriendStar.Web.Areas.VBaseData.Controllers
{
    public class V_CPK_61_PC_StoCPKAIAOAcco_AYController : ControllerBase
    {
        private V_CPK_61_PC_StoCPKAIAOAcco_AYApp v_cpk_61_PC_StoCPKAIAOAcco_AYApp = new V_CPK_61_PC_StoCPKAIAOAcco_AYApp();

        [HttpGet]
        [HandlerAjaxOnly]
        public ActionResult GetGridJson(Pagination pagination,string keyword)
        {
            var data = new
            {
                rows = v_cpk_61_PC_StoCPKAIAOAcco_AYApp.GetList(pagination,keyword),
                total = pagination.total,
                page = pagination.page,
                records = pagination.records
            };
            return Content(data.ToJson());
        }

       
    }
}
